from application.utils.jwt_token import permission_islogin
from fastapi import APIRouter

userapp_router = APIRouter()


@userapp_router.post("/test_post", summary='登录')
@permission_islogin()
async def login(request):
    name = request.state.data['name']
    size = request.state.data['size']
    return {"code": 200, "msg": "成功"}
